<html>
<head>
<title>eLGU - {TITLE}</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<script language="JavaScript" type="text/JavaScript">
<!--




function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<link href="css/elgu.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

<script language="Javascript">
function urlEncode(str){
	// The Javascript escape and unescape functions do not correspond
	// with what browsers actually do...
	var SAFECHARS = "0123456789" +					// Numeric
					"ABCDEFGHIJKLMNOPQRSTUVWXYZ" +	// Alphabetic
					"abcdefghijklmnopqrstuvwxyz" +
					"-_.!~*'()";					// RFC2396 Mark characters
	var HEX = "0123456789ABCDEF";

	var plaintext = str;
	var encoded = "";
	for (var i = 0; i < plaintext.length; i++ ) {
		var ch = plaintext.charAt(i);
	    if (ch == " ") {
		    encoded += "+";				// x-www-urlencoded, rather than %20
		} else if (SAFECHARS.indexOf(ch) != -1) {
		    encoded += ch;
		} else {
		    var charCode = ch.charCodeAt(0);
			if (charCode > 255) {
			    alert( "Unicode Character '" 
                        + ch 
                        + "' cannot be encoded using standard URL encoding.\n" +
				          "(URL encoding only supports 8-bit characters.)\n" +
						  "A space (+) will be substituted." );
				encoded += "+";
			} else {
				encoded += "%";
				encoded += HEX.charAt((charCode >> 4) & 0xF);
				encoded += HEX.charAt(charCode & 0xF);
			}
		}
	} // for

	return encoded;
};

function openWin(strLink, strWindow, intLeft, intTop, intWidth, intHeight){
	window.open(strLink, strWindow, "position:absolute; left="+intLeft+", top="+intTop+", width="+intWidth+", height="+intHeight+", status=1, toolbar=0, menubar=1, scrollbars=1, resizable=1");
}

function showPrintWindow(){
	nOR = document.NoticeOfAssessmentCompanyList.namesOfRepresentatives.value;
	s = document.NoticeOfAssessmentCompanyList.signatoryID.options[document.NoticeOfAssessmentCompanyList.signatoryID.selectedIndex].value;
	d = document.NoticeOfAssessmentCompanyList.designation.value;

	if(nOR==""){
		alert("Name(s) of Duly Authorized Representative(s) is blank.");
		document.NoticeOfAssessmentCompanyList.namesOfRepresentatives.focus();
		return false;
	}
	if(s==""){
		alert("Signatory is blank.");
		document.NoticeOfAssessmentCompanyList.signatoryID.focus();
		return false;
	}

	companyIDUrl = "";
	for(i=0 ; i < document.NoticeOfAssessmentCompanyList.elements.length ; i++){
		if(document.NoticeOfAssessmentCompanyList.elements[i].type=="checkbox"){
			if(document.NoticeOfAssessmentCompanyList.elements[i].checked==true){
				companyIDUrl += "&companyID[]=" + document.NoticeOfAssessmentCompanyList.elements[i].value;
			}
		}
	}

	if(companyIDUrl==""){
		alert("No Owners checked.");
		return false;
	}

	url = "NoticeOfAssessmentPrint.php{Session}&formAction=view";
	url += "&formArray[ownerType]=Company";
	url += "&formArray[namesOfRepresentatives]=" + urlEncode(nOR);
	url += "&formArray[signatoryID]=" + urlEncode(s);
	url += "&formArray[designation]=" + urlEncode(d);
	url += companyIDUrl;

	openWin(url, 'NoticeOfAssessment', 0, 0, 800, 600);
}

function doSearch(){
	document.NoticeOfAssessmentCompanyList.page.options[0].selected = true;
	document.NoticeOfAssessmentCompanyList.submit();
}

function goNav(url){
	nOR = document.NoticeOfAssessmentCompanyList.namesOfRepresentatives.value;
	s = document.NoticeOfAssessmentCompanyList.signatoryID.options[document.NoticeOfAssessmentCompanyList.signatoryID.selectedIndex].value;
	d = document.NoticeOfAssessmentCompanyList.designation.value;
	sK = document.NoticeOfAssessmentCompanyList.searchKey.value;

	listType = "{listType}";

	url += "&namesOfRepresentatives=" + urlEncode(nOR);
	url += "&signatoryID=" + urlEncode(s);
	url += "&designation=" + urlEncode(d);

	if(listType!="All"){
		url += "&formAction=search";
		url += "&searchKey=" + urlEncode(sK);
	}

	window.location.href = url + "#navarea";
}

function goJumpPage(url){
	nOR = document.NoticeOfAssessmentCompanyList.namesOfRepresentatives.value;
	s = document.NoticeOfAssessmentCompanyList.signatoryID.options[document.NoticeOfAssessmentCompanyList.signatoryID.selectedIndex].value;
	d = document.NoticeOfAssessmentCompanyList.designation.value;
	sK = document.NoticeOfAssessmentCompanyList.searchKey.value;

	p = document.NoticeOfAssessmentCompanyList.page.options[document.NoticeOfAssessmentCompanyList.page.selectedIndex].value;

	listType = "{listType}";

	url += "&page=" + urlEncode(p);
	url += "&namesOfRepresentatives=" + urlEncode(nOR);
	url += "&signatoryID=" + urlEncode(s);
	url += "&designation=" + urlEncode(d);

	if(listType!="All"){
		url += "&formAction=search";
		url += "&searchKey=" + urlEncode(sK);
	}

	window.location.href = url + "#navarea";
}

</script>

<style>
 .smallfont{font-family:arial; font-size:9px;}
 .mediumfont{font-family:arial; font-size:11px;}
</style>

</head>
<body BGCOLOR=#999999 link="#333333" vlink="#333333" alink="#333333" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"> 
      <table WIDTH=100 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
        <tr> 
          <td> <img SRC="images/inner_01.jpg" WIDTH=18 HEIGHT=9 ></td>
          <td> <img SRC="images/inner_02.jpg" WIDTH=27 HEIGHT=9 ></td>
          <td COLSPAN=2> <img SRC="images/inner_03.jpg" WIDTH=598 HEIGHT=9 ></td>
          <td COLSPAN=3 ROWSPAN=2><img SRC="images/steps/step00.jpg" WIDTH=157 HEIGHT=133 ></td>
        </tr>
        <tr> 
          <td> <img SRC="images/inner_05.jpg" WIDTH=18 HEIGHT=124 ></td>
          <td> <img SRC="images/inner_06.jpg" WIDTH=27 HEIGHT=124 ></td>
          <td COLSPAN=2 bgcolor="#CCCCCC"> <img SRC="images/title/title_am_reports.jpg" WIDTH=598 HEIGHT=124 ></td>
        </tr>

		<!-- start of navigation menu -->

        <tr> 
          <td> <img SRC="images/inner_08.jpg" WIDTH=18 HEIGHT=53 ></td>
          <td> <img SRC="images/inner_09.jpg" WIDTH=27 HEIGHT=53 ></td>
          <td COLSPAN=3 align="left" valign="top" background="images/nav/nav_b_08_bg.jpg" bgcolor="#CCCCCC"> 
            <table WIDTH=702 BORDER=0 CELLPADDING=0 CELLSPACING=0>
			   <tr> 
			    <td width="72"> <img SRC="images/nav/nav_a_01.jpg" WIDTH=72 HEIGHT=53 ></td>
				<td background="images/nav_area_bg.jpg">
					<table width="100%%" border="0" cellspacing="0" cellpadding="0">
		  <tr align="center"> 
		   <td width="0" align=left class="common"><b>{uname}</b> : {today}</td>
		   <td width="0" align=right>
			<a href="AssessorsHome.php{Session}" class="navi" title="Assessor's Module : Home">AM : Home</a>
		    <font class="navi">&lt;</font>
			<a href="home.php{Session}" class="navi" title="Home">Home</a>		    
		    <font class="navi">|</font>
			<a href="Logout.php" class="navi" title="Logout">Logout</a>
			<br>&nbsp;
		   </td>
		  </tr>

		  <tr align="center"> 
		   <td width="0" nowrap colspan=2 class="navi"><a href="RPUManagementHome.php{Session}" class="navi" title="Real Property Units Management">RPU Management</a>

		   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

		   |

		   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

		   <!-- BEGIN TransactionsLink -->
           <a href="TransactionsHome.php{Session}" class="navi" title="Transactions">Transactions</a>
		   <!-- END TransactionsLink -->
		   <!-- BEGIN TransactionsLinkText -->
           <font class="navi"><font color="#eeeeee">Transactions</font></font>
		   <!-- END TransactionsLinkText -->

		   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

		   |

		   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		   
		   <a href="ReportsHome.php{Session}" class="navi" title="Reports">Reports</a>
		   
		   </td>

		  </tr>

				 </table>
			    </td>
				<td width="75"> <img SRC="images/nav/nav_a_08.jpg" WIDTH=75 HEIGHT=53 ></td>
		       </tr>
			</table>
          </td>
          <td> <img SRC="images/inner_11.jpg" WIDTH=36 HEIGHT=53 ></td>
          <td> <img SRC="images/inner_12.jpg" WIDTH=17 HEIGHT=53 ></td>
        </tr>

		<!-- end of navigation menu -->

        <tr> 
          <td align="center" valign="top"> <img SRC="images/inner_13.jpg" WIDTH=18 HEIGHT=375 ></td>
          <td background="images/inner_14.jpg"> <img SRC="images/spacer.gif" WIDTH=27 HEIGHT=1 ></td>
          <td COLSPAN=3 align="left" valign="top" background="images/background/bg_middle.jpg" bgcolor="#CCCCCC"> 
            <table width="702" height="375" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td align="left" valign="top"> 
                  <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr> 
                      <td align="center" valign="top" class="subtitle"> 
                        <table width="90%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            
                          </tr>
                        </table>
                      </td>
                    </tr>

					<tr>
						<td class="navi" align="left">
						 <br>
						 <a href="ReportsHome.php{Session}" class="navi">Assessor's Reports</a> | <a href="OfficialDocuments.php{Session}" class="navi">Official Documents</a>
						</td>					
					</tr>

                    <tr> 
                      <td align="center" valign="top" class="subtitle"><img src="images/spacer.gif" width="10" height="15">

					  <br>NOTICE OF ASSESSMENT

					  <br>					  
					  </td>
                    </tr>

                    <tr> 
                      <td align="left" valign="top" class="navi">
						  <br>
						  <a href="NoticeOfAssessmentPersonList.php{Session}" class="navi">Person List</a>

						  |

						  <a href="NoticeOfAssessmentCompanyList.php{Session}" class="navi"><U>Company List</U></a>
						<br>&nbsp;
					  </td>
                    </tr>

                    <tr> 
                      <td valign="top" class="fields">
					  <form name="NoticeOfAssessmentCompanyList" action="NoticeOfAssessmentCompanyList.php" method="get">
						<input type="hidden" name="rpts_Session" value="{sessionID}">
						<input type="hidden" name="formAction" value="search">

						<table width="100%" border="0" cellpadding="10" cellspacing="1" align=center>
						<tr>
							<td class="fileds_comment" align="center" colspan=2>
							 Fill up the ff. fields then check an owner from the list and click "Print" to load Notice of Assessmnet.
							</td>
						</tr>
						<tr bgcolor="#cccccc">
							<td class="fields" align="right">
								<B>Name(s) of duly authorized Representative(s) :</B>
							</td>
							<td class="fields" align="left">
								<input type="text" size="60" name="namesOfRepresentatives" value="{namesOfRepresentatives}">
							</td>
						</tr>
						<tr bgcolor="#cccccc">
							<td class="fields" align="right">
								<B>Signatory : </B>
							</td>
							<td class="fields" align="left">
								<select name="signatoryID">
					                <option value="">none</option>
					                <!-- BEGIN SignatoryList -->
						            <option value="{id}" {signatoryID_sel}>{name}</option>
					                <!-- END SignatoryList -->
					              </select>
							</td>
						</tr>
						<tr bgcolor="#cccccc">
							<td class="fields" align="right">
			  				    <a name="navarea"></a>
								<B>Designation : </B>
							</td>
							<td class="fields" align="left">
								<input type="text" name="designation" size=40 value="{designation}">
							</td>
						</tr>

						</table>

						<br>

						<!-- BEGIN LIST -->
						
						<table width="100%" border="0" cellpadding="4" cellspacing="1" align=center>
						<tr bgcolor="#f6f6f6">
							<td valign=top align="left" class="fileds_comment" colspan=4>
							 search :
							 <input type="text" name="searchKey" size=35 value="{searchKey}">
							 <input type="button" value="Search" onClick="doSearch();">
							 <font color="#777777">&nbsp;&nbsp;(searches by: Owner Name)</font>
							</td>
						</tr>
						<tr bgcolor="#f6f6f6">
							<td valign=top align="left" class="common" colspan=4>
								<table border=0 cellpadding=0 cellspacing=0 width="100%">
								<tr>
									<td align="left" class="common">
										 - <a href="NoticeOfAssessmentCompanyList.php{Session}">view all</a>
										 &nbsp;
										 {resultsMessage}
									</td>
									<td align="right" class="common">
										 Listing {listType} : Page {page} of <B>{totalPages}</B>
									</td>
								</tr>
								</table>
							</td>
						</tr>
						<tr bgcolor="#cccccc">
							<td valign=top align=center class="fields">
								 <input type="button" value="Print" onClick="showPrintWindow();">
							</td>
							<td valign=top align=right class="fileds_comment">
								 companyID
							</td>
							<td class="fields" nowrap><b>
								 <a href="#navarea" onClick="goNav('NoticeOfAssessmentCompanyList.php{Session}&sortKey={sortKey}&sortOrder={oppositeSortOrder}&page={page}');">companyName</a>
								 <img src="images/{oppositeSortOrder}_order.png"></b>
							</td>
							<td class="fields"><b>
								 address</b>
							</td>
						</tr>
						<!-- BEGIN OwnerCompanyList -->
						<tr bgcolor="#f6f6f6">
							<td align=center class="fields">
							 <input name="companyID[]" type="checkbox" value="{companyID}">
							</td>
							<td class="fields">
							 {companyID}
							</td>
							<td class="fields">
							 {companyName} 
							</td class="fileds_comment">
							<td class="fields">
							 {address}
							</td>
						</tr>
						<!-- END OwnerCompanyList -->

						<!-- BEGIN Navi -->
						<tr>
							<td colspan=4 bgcolor="#f6f6f6" class="fileds_comment" align="center">
								 <a href="#navarea" onClick="goNav('NoticeOfAssessmentCompanyList.php{Session}&sortKey=Company.companyName&sortOrder={sortOrder}&page=1');">FIRST</a> 
								 |
								 <a href="#navarea" onClick="goNav('NoticeOfAssessmentCompanyList.php{Session}&sortKey=Company.companyName&sortOrder={sortOrder}&page={prev}');">PREV</a>
								 [ 

								 <select name="page" style="text-align:center; font-size:10px;" onChange="goJumpPage('NoticeOfAssessmentCompanyList.php{Session}&sortKey=Company.companyName&sortOrder={sortOrder}');">
								  <!-- BEGIN DropDownPageList -->
								  <option value="{dropDownPage}" {dropDownPage_selected}>{dropDownPage}</option>
								  <!-- END DropDownPageList -->
								 </select>
								 
								 of <B>{totalPages}</B>
								 
								 ]
								 <a href="#navarea" onClick="goNav('NoticeOfAssessmentCompanyList.php{Session}&sortKey=Company.companyName&sortOrder={sortOrder}&page={next}');">NEXT</a>
								 |
								 <a href="#navarea" onClick="goNav('NoticeOfAssessmentCompanyList.php{Session}&sortKey=Company.companyName&sortOrder={sortOrder}&page={totalPages}');">LAST</a>
							</td>
						</tr>
						<!-- END Navi -->

						</table>

						<!-- END LIST -->
					  </form>
					  					  
					  </td>
                    </tr>

                    <tr> 
                      <td align="center" valign="top"><img src="images/spacer.gif" width="10" height="15"><a name="#down"></a></td>
                    </tr>
                    <tr> 
                      <td align="center" valign="top" class="fileds_comment">
					    <br><br><br><br><br><br><br><br><br><br><br><br><br><br>
						Tampering 
                        with this system is criminally punishable under Philippine 
                        Laws.<br>
                        &copy; Republic of the Philippines National Computer Center. 
                        All Rights Reserved. </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
          <td background="images/inner_16.jpg"> <img SRC="images/spacer.gif " WIDTH=36 HEIGHT=375 ></td>
          <td> <img SRC="images/inner_17.jpg" WIDTH=17 HEIGHT=375 ></td>
        </tr>
        <tr> 
          <td> <img SRC="images/inner_18.jpg" WIDTH=18 HEIGHT=39></td>
          <td> <img SRC="images/inner_19.jpg" WIDTH=27 HEIGHT=39></td>
          <td> <img SRC="images/inner_20.jpg" WIDTH=355 HEIGHT=39></td>
          <td> <img SRC="images/inner_21.jpg" WIDTH=243 HEIGHT=39></td>
          <td> <img SRC="images/inner_22.jpg" WIDTH=104 HEIGHT=39></td>
          <td> <img SRC="images/inner_23.jpg" WIDTH=36 HEIGHT=39></td>
          <td> <img SRC="images/inner_24.jpg" WIDTH=17 HEIGHT=39></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>